<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>GitLab 实时问题报告</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div id="sidebar">
        <div id="sidebar-header">
            <h2>问题列表</h2>
            <button id="refresh-btn" title="刷新列表">🔄</button>
        </div>
        <div id="issue-list-container">
            <!-- JS会在这里填充 issue 列表 -->
            <div class="loader">正在加载...</div>
        </div>
    </div>
    <div id="resizer"></div>
    <div id="main-content">
        <div id="logs-container" style="display: none;">
            <h3>实时日志</h3>
            <div id="logs-content"></div>
        </div>
        <div id="welcome" class="issue-detail active">
            <h1>欢迎使用 GitLab 实时问题报告</h1>
            <p>正在连接服务器并获取最新数据，请稍候...</p>
            <p>如果长时间没有响应，请检查后台服务的日志输出。</p>
        </div>
        <!-- JS会在这里填充 issue 详情 -->
    </div>
    
    <!-- Lightbox container -->
    <div id="lightbox-overlay">
        <span id="lightbox-close">&times;</span>
        <img id="lightbox-image" src="">
    </div>

    <script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html> 